﻿using System.Threading.Tasks;
using hello.csharp.common.Enums;
using hello.csharp.domain;

namespace hello.csharp.common.Interfaces.Storages
{
    public interface IUserSnackStorageRead : IStorageRead<UserSnack, string>
    {
        /// <summary>
        /// 值是否唯一
        /// </summary>
        /// <param name="onlyItem">唯一项类型</param>
        /// <param name="value">值</param>
        /// <returns>true已存在，false不存在</returns>
        Task<bool> ExistByOnlyItemAsync(OnlyItem onlyItem, string value);

    }
}